package com.cloudbroker.bcs.platform.ltb.middle.service;

import com.cloudbroker.bcs.common.service.base.ServiceBase;
import com.cloudbroker.bcs.platform.ltb.middle.entity.Ask;
import com.cloudbroker.bcs.platform.ltb.middle.entityview.AskParam;
import com.cloudbroker.bcs.platform.ltb.middle.entityview.AskView;
import com.cloudbroker.bcs.platform.ltb.middle.entityview.LeaderAskParam;

import java.util.List;

/**
 * Created by daibd19671 on 2016/11/18.
 */
public interface AskService extends ServiceBase<Ask, String> {

    void askAdd(Ask ask);


    Ask getAsk(Ask temp);

    void removeAsk(Ask ask);

    int countAsk(AskParam param);


    List<Ask> qryAsk(AskParam param);

    List<Ask> qryByAskId(Ask ask);

    List<Ask> qryByAsnwerId(List<Long> idList);

    int countAnswer(Ask ask);

    void updateAsk(Ask tempResult);

    List<Ask> searchAsk(Ask temp);

    List<Ask> qryByAskIdList(List<Long> idList);

    List<Ask> getLastAnswerByLeaderId(List<Long> list);

    int leaderCountAsk(LeaderAskParam param);

    List<Ask> leaderQryAsk(LeaderAskParam param);


//    List<Ask> askQry(Ask ask);
}
